package inv.stask.ui;

import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class EditTaskDialog extends JDialog {

	private static final long serialVersionUID = 1L;
	private JPanel jContentPane = null;
	private JPanel jFormPanel = null;
	private JTextField jTextField_Task = null;
	private JTextField jTextField_Description = null;
	private JButton jSaveButton = null;
	private JButton jCancelButton = null;
	private JLabel jLabel_Task = null;
	private JLabel jLabel_Description = null;

	/**
	 * @param owner
	 */
	public EditTaskDialog(Frame owner) {
		super(owner);
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(300, 200);
		this.setContentPane(getJContentPane());
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jContentPane = new JPanel();
			jContentPane.setLayout(new BorderLayout());
			jContentPane.add(getJFormPanel(), BorderLayout.CENTER);
		}
		return jContentPane;
	}

	/**
	 * This method initializes jFormPanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJFormPanel() {
		if (jFormPanel == null) {

			jLabel_Description = new JLabel();
			jLabel_Description.setText("JLabel");

			jLabel_Task = new JLabel();
			jLabel_Task.setText("JLabel");

			jFormPanel = new JPanel();
			GridLayout layout	= new GridLayout(3, 2, 4, 4);
			jFormPanel.setLayout(layout);
			
			jFormPanel.add(jLabel_Task);
			jFormPanel.add(getJTextField_Task());
			
			jFormPanel.add(jLabel_Description);
			jFormPanel.add(getJTextField_Description());
			jFormPanel.add(getJSaveButton());
			jFormPanel.add(getJCancelButton());
			
			
		}
		return jFormPanel;
	}

	/**
	 * This method initializes jTextField_Task	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField_Task() {
		if (jTextField_Task == null) {
			jTextField_Task = new JTextField();
		}
		return jTextField_Task;
	}

	/**
	 * This method initializes jTextField_Description	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField_Description() {
		if (jTextField_Description == null) {
			jTextField_Description = new JTextField();
		}
		return jTextField_Description;
	}

	/**
	 * This method initializes jSaveButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJSaveButton() {
		if (jSaveButton == null) {
			jSaveButton = new JButton();
		}
		return jSaveButton;
	}

	/**
	 * This method initializes jCancelButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJCancelButton() {
		if (jCancelButton == null) {
			jCancelButton = new JButton();
		}
		return jCancelButton;
	}

}
